const PUBLISH_IDS='PUBLISH_IDS';

export function getPubIds() {
    var jsonString = sessionStorage.getItem(PUBLISH_IDS);
    jsonString = jsonString || '{}';
    return JSON.parse(jsonString);
}

export function setPubIds(ids) {
    removePubIds();
    sessionStorage.setItem(PUBLISH_IDS,JSON.stringify(ids));
}

export function removePubIds() {
    sessionStorage.removeItem(PUBLISH_IDS);
}